package com.ruoyi.yuanliao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName sys_crop
 */
@TableName(value ="sys_crop")
@Data
public class SysCrop implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 作物类型
     */
    private String types;

    /**
     * 肥料
     */
    private String manure;

    /**
     * 种植方式
     */
    private String ways;

    /**
     * 种植年度
     */
    private String annual;

    /**
     * 是否装袋
     */
    private String bagging;

    /**
     * 育苗周期
     */
    private String seedlings;

    /**
     * 灌溉周期
     */
    private String irrigate;

    /**
     * 施肥周期
     */
    private String fertilizer;

    /**
     * 除草周期
     */
    private String weeding;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 备注
     */
    private String decps;

    /**
     * 作物id
     */
    private Integer cropId;

    /**
     * 作物名称
     */
    private String name;

    /**
     * token
     */
    private String token;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysCrop other = (SysCrop) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTypes() == null ? other.getTypes() == null : this.getTypes().equals(other.getTypes()))
            && (this.getManure() == null ? other.getManure() == null : this.getManure().equals(other.getManure()))
            && (this.getWays() == null ? other.getWays() == null : this.getWays().equals(other.getWays()))
            && (this.getAnnual() == null ? other.getAnnual() == null : this.getAnnual().equals(other.getAnnual()))
            && (this.getBagging() == null ? other.getBagging() == null : this.getBagging().equals(other.getBagging()))
            && (this.getSeedlings() == null ? other.getSeedlings() == null : this.getSeedlings().equals(other.getSeedlings()))
            && (this.getIrrigate() == null ? other.getIrrigate() == null : this.getIrrigate().equals(other.getIrrigate()))
            && (this.getFertilizer() == null ? other.getFertilizer() == null : this.getFertilizer().equals(other.getFertilizer()))
            && (this.getWeeding() == null ? other.getWeeding() == null : this.getWeeding().equals(other.getWeeding()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getDecps() == null ? other.getDecps() == null : this.getDecps().equals(other.getDecps()))
            && (this.getCropId() == null ? other.getCropId() == null : this.getCropId().equals(other.getCropId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTypes() == null) ? 0 : getTypes().hashCode());
        result = prime * result + ((getManure() == null) ? 0 : getManure().hashCode());
        result = prime * result + ((getWays() == null) ? 0 : getWays().hashCode());
        result = prime * result + ((getAnnual() == null) ? 0 : getAnnual().hashCode());
        result = prime * result + ((getBagging() == null) ? 0 : getBagging().hashCode());
        result = prime * result + ((getSeedlings() == null) ? 0 : getSeedlings().hashCode());
        result = prime * result + ((getIrrigate() == null) ? 0 : getIrrigate().hashCode());
        result = prime * result + ((getFertilizer() == null) ? 0 : getFertilizer().hashCode());
        result = prime * result + ((getWeeding() == null) ? 0 : getWeeding().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getDecps() == null) ? 0 : getDecps().hashCode());
        result = prime * result + ((getCropId() == null) ? 0 : getCropId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getToken() == null) ? 0 : getToken().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", types=").append(types);
        sb.append(", manure=").append(manure);
        sb.append(", ways=").append(ways);
        sb.append(", annual=").append(annual);
        sb.append(", bagging=").append(bagging);
        sb.append(", seedlings=").append(seedlings);
        sb.append(", irrigate=").append(irrigate);
        sb.append(", fertilizer=").append(fertilizer);
        sb.append(", weeding=").append(weeding);
        sb.append(", address=").append(address);
        sb.append(", decps=").append(decps);
        sb.append(", cropId=").append(cropId);
        sb.append(", name=").append(name);
        sb.append(", token=").append(token);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}